<?php

/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});

//请勿删除，用于二级链接跳转
Route::get('/invite', function () {
    return redirect()->to("https://c.banhuiyun.com/website/website/_173ce246c390c34/f173d20ea4ae2fca");
});

Route::get('/getNews', function () {
    $data = \App\Http\Services\Wechat\WechatLogin::getMaterial("news",0,20);
    var_dump($data);
});

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/

Route::group(['middleware' => ['web']], function () {

    Route::get('menu',['as' => 'Home.Page.menu', 'uses' => 'HomeController@menu']);
    Route::get('content',['as' => 'Home.Page.content', 'uses' => 'HomeController@content']);

    Route::group(['prefix'=>'admin'],function(){
        Route::get('login',['as' => 'Admin.Home.login', 'uses' => 'AdminController@login']);
        Route::get('user-list',['as' => 'Admin.Home.userList', 'uses' => 'AdminController@userList']);
        Route::get('banner-list',['as' => 'Admin.Home.bannerList', 'uses' => 'AdminController@bannerList']);
        Route::get('banner-set',['as' => 'Admin.Home.bannerSet', 'uses' => 'AdminController@bannerSet']);
        Route::get('change-Pwd',['as' => 'Admin.Home.changePwd', 'uses' => 'AdminController@changePwd']);
        Route::get('admin-list',['as' => 'Admin.Home.adminList' , 'uses' => 'AdminController@adminList']);
        Route::get('admin-set',['as' => 'Admin.Home.adminSet' , 'uses' => 'AdminController@adminSet']);
        Route::get('classify-list',['as' => 'Admin.Home.classifyList' , 'uses' => 'AdminController@classifyList']);


    });

    Route::group(['prefix'=>'api', 'namespace'=>'Api','middleware' => ['cors']],function(){
        Route::group(['prefix' => 'admin','namespace'=>'Admin'],function(){
            Route::post('auth/sign-in',['as'=>'Api.Admin.Auth.signInUser','uses'=>'AuthController@signInUser']);
            Route::post('auth/userAdminLogin',['as'=>'Api.Admin.Auth.userAdminLogin','uses'=>'AuthController@userAdminLogin']);
            Route::post('auth/change-pwd',['as'=>'Api.Admin.Auth.changePassword','uses'=>'AuthController@changePassword']);
            Route::get('auth/signOut',['as'=>'Api.Admin.Auth.loginOut','uses'=>'AuthController@loginOut']);
            Route::get('auth/getAdminUserInfo',['as'=>'Api.Admin.Auth.getAdminUserInfo','uses'=>'AuthController@getAdminUserInfo']);
            Route::get('auth/getPersonalAuthList',['as'=>'Api.Admin.Auth.getPersonalAuthList','uses'=>'AuthController@getPersonalAuthList']);
            Route::post('auth/changePersonalAuthStatus',['as'=>'Api.Admin.Auth.changePersonalAuthStatus','uses'=>'AuthController@changePersonalAuthStatus']);
            Route::get('auth/getUnitAuthList',['as'=>'Api.Admin.Auth.getUnitAuthList','uses'=>'AuthController@getUnitAuthList']);
            Route::post('auth/changeUnitAuthStatus',['as'=>'Api.Admin.Auth.changeUnitAuthStatus','uses'=>'AuthController@changeUnitAuthStatus']);
            Route::get('auth/getExpertAuthList',['as'=>'Api.Admin.Auth.getExpertAuthList','uses'=>'AuthController@getExpertAuthList']);
            Route::post('auth/changeExpertAuthStatus',['as'=>'Api.Admin.Auth.changeExpertAuthStatus','uses'=>'AuthController@changeExpertAuthStatus']);
            Route::get('auth/getBackstageSectionList',['as'=>'Api.Admin.Auth.getBackstageSectionList','uses'=>'AuthController@getBackstageSectionList']);
            Route::get('auth/getSectionUrl',['as'=>'Api.Admin.Auth.getSectionUrl','uses'=>'AuthController@getSectionUrl']);
            Route::get('auth/getVipMaturityRemindTime',['as'=>'Api.Admin.Auth.getVipMaturityRemindTime','uses'=>'AuthController@getVipMaturityRemindTime']);
            Route::post('auth/setVipMaturityRemindTime',['as'=>'Api.Admin.Auth.setVipMaturityRemindTime','uses'=>'AuthController@setVipMaturityRemindTime']);
            Route::get('auth/sendSmsToAdminOne',['as'=>'Api.Admin.Auth.sendSmsToAdminOne','uses'=>'AuthController@sendSmsToAdminOne']);
            Route::get('auth/sendSmsToAdminTwo',['as'=>'Api.Admin.Auth.sendSmsToAdminTwo','uses'=>'AuthController@sendSmsToAdminTwo']);

            //获取角色列表
            Route::get('auth/roleList',['as'=>'Api.Admin.Auth.roleList','uses'=>'AuthController@roleList']);
            //角色详情
            Route::get('auth/roleSet',['as'=>'Api.Admin.Auth.roleSet','uses'=>'AuthController@roleSet']);
            //添加角色
            Route::post('auth/setRole',['as'=>'Api.Admin.Auth.setRole','uses'=>'AuthController@setRole']);
            //删除角色
            Route::post('auth/delRole',['as'=>'Api.Admin.Auth.delRole','uses'=>'AuthController@delRole']);
            //获取权限列表
            Route::get('auth/permissionsList',['as'=>'Api.Admin.Auth.permissionsList','uses'=>'AuthController@permissionsList']);
            //权限详情
            Route::get('auth/permissionsSet',['as'=>'Api.Admin.Auth.permissionsSet','uses'=>'AuthController@permissionsSet']);
            //添加权限
            Route::post('auth/setPermissions',['as'=>'Api.Admin.Auth.setPermissions','uses'=>'AuthController@setPermissions']);
            //删除权限
            Route::post('auth/delPermissions',['as'=>'Api.Admin.Auth.delPermissions','uses'=>'AuthController@delPermissions']);
            //获取管理员列表
            Route::get('auth/adminList',['as'=>'Api.Admin.Auth.adminList','uses'=>'AuthController@adminList']);
            Route::get('auth/adminSet',['as'=>'Api.Admin.Auth.adminSet','uses'=>'AuthController@adminSet']);
            Route::get('auth/getMyPermission',['as'=>'Api.Admin.Auth.getMyPermission','uses'=>'AuthController@getMyPermission']);
            Route::post('auth/setAdmin',['as' => 'Api.Admin.Auth.setAdmin','uses' => 'AuthController@setAdmin']);
            Route::post('auth/delAdmin',['as' => 'Api.Admin.Auth.delAdmin','uses' => 'AuthController@delAdmin']);

            //活动模块
            Route::get('activity/getActivePartyList',['as'=>'Api.Admin.Activity.getActivePartyList','uses'=>'ActivityController@getActivePartyList']);
            Route::get('activity/getActivePartyDetail',['as'=>'Api.Admin.Activity.getActivePartyDetail','uses'=>'ActivityController@getActivePartyDetail']);
            Route::post('activity/setActiveParty',['as'=>'Api.Admin.Activity.setActiveParty','uses'=>'ActivityController@setActiveParty']);
            Route::post('activity/delActiveParty',['as'=>'Api.Admin.Activity.delActiveParty','uses'=>'ActivityController@delActiveParty']);
            Route::get('activity/getActivityList',['as'=>'Api.Admin.Activity.getActivityList','uses'=>'ActivityController@getActivityList']);
            Route::get('activity/getSignUpTableField',['as'=>'Api.Admin.Activity.getSignUpTableField','uses'=>'ActivityController@getSignUpTableField']);
            Route::get('activity/getActivityDetail',['as'=>'Api.Admin.Activity.getActivityDetail','uses'=>'ActivityController@getActivityDetail']);
            Route::post('activity/setActivity',['as'=>'Api.Admin.Activity.setActivity','uses'=>'ActivityController@setActivity']);
            Route::post('activity/delActivity',['as'=>'Api.Admin.Activity.delActivity','uses'=>'ActivityController@delActivity']);
            Route::get('activity/getActivitySignInList',['as'=>'Api.Admin.Activity.getActivitySignInList','uses'=>'ActivityController@getActivitySignInList']);
            Route::post('activity/activitySign',['as'=>'Api.Admin.Activity.activitySign','uses'=>'ActivityController@activitySign']);
            Route::post('activity/submitOpenInvoiceApply',['as'=>'Api.Admin.Activity.submitOpenInvoiceApply','uses'=>'ActivityController@submitOpenInvoiceApply']);
            Route::post('activity/activitySignUpReview',['as'=>'Api.Admin.Activity.activitySignUpReview','uses'=>'ActivityController@activitySignUpReview']);
            Route::get('activity/lookOverRefundResult',['as'=>'Api.Admin.Activity.lookOverRefundResult','uses'=>'ActivityController@lookOverRefundResult']);
            Route::get('activity/getSignUpSuccessList',['as'=>'Api.Admin.Activity.getSignUpSuccess','uses'=>'ActivityController@getSignUpSuccess']);

            //用户模块
            Route::get('user/getUserAuthTypeFilterList',['as'=>'Api.Admin.User.getUserAuthTypeFilterList','uses'=>'UserController@getUserAuthTypeFilterList']);
            Route::get('user/getUserList',['as'=>'Api.Admin.User.getUserList','uses'=>'UserController@getUserList']);
            Route::get('user/getVipUserList',['as'=>'Api.Admin.User.getVipUserList','uses'=>'UserController@getVipUserList']);
            Route::get('user/getUserDetail',['as'=>'Api.Admin.User.getUserDetail','uses'=>'UserController@getUserDetail']);
            Route::get('user/getExpertsList',['as'=>'Api.Admin.User.getExpertsList','uses'=>'UserController@getExpertsList']);
            Route::get('user/getExpertDetail',['as'=>'Api.Admin.User.getExpertDetail','uses'=>'UserController@getExpertDetail']);
            Route::post('user/setExpert',['as'=>'Api.Admin.User.setExpert','uses'=>'UserController@setExpert']);
            Route::post('user/delExpert',['as'=>'Api.Admin.User.delExpert','uses'=>'UserController@delExpert']);
            Route::get('user/getExpertOfficialCommentList',['as'=>'Api.Admin.User.getExpertOfficialCommentList','uses'=>'UserController@getExpertOfficialCommentList']);
            Route::get('user/getExpertOfficialCommentDetail',['as'=>'Api.Admin.User.getExpertOfficialCommentDetail','uses'=>'UserController@getExpertOfficialCommentDetail']);
            Route::post('user/setExpertOfficialComment',['as'=>'Api.Admin.User.setExpertOfficialComment','uses'=>'UserController@setExpertOfficialComment']);
            Route::post('user/delExpertOfficialComment',['as'=>'Api.Admin.User.delExpertOfficialComment','uses'=>'UserController@delExpertOfficialComment']);
            Route::get('user/getUserAgreement',['as'=>'Api.Admin.User.getUserAgreement','uses'=>'UserController@getUserAgreement']);
            Route::post('user/setUserAgreement',['as'=>'Api.Admin.User.setUserAgreement','uses'=>'UserController@setUserAgreement']);
            Route::post('user/changeAgreementStatus',['as'=>'Api.Admin.User.changeAgreementStatus','uses'=>'UserController@changeAgreementStatus']);
            Route::get('user/getAuthenticateRule',['as'=>'Api.Admin.User.getAuthenticateRule','uses'=>'UserController@getAuthenticateRule']);
            Route::post('user/setAuthenticateRule',['as'=>'Api.Admin.User.setAuthenticateRule','uses'=>'UserController@setAuthenticateRule']);
            Route::get('user/getGroupList',['as'=>'Api.Admin.User.getGroupList','uses'=>'UserController@getGroupList']);
            Route::get('user/getGroupDetail',['as'=>'Api.Admin.User.getGroupDetail','uses'=>'UserController@getGroupDetail']);
            Route::post('user/setGroup',['as'=>'Api.Admin.User.setGroup','uses'=>'UserController@setGroup']);
            Route::post('user/delGroup',['as'=>'Api.Admin.User.delGroup','uses'=>'UserController@delGroup']);
            Route::get('user/getGroupMemberList',['as'=>'Api.Admin.User.getGroupMemberList','uses'=>'UserController@getGroupMemberList']);
            Route::get('user/getGroupMemberDetail',['as'=>'Api.Admin.User.getGroupMemberDetail','uses'=>'UserController@getGroupMemberDetail']);
            Route::post('user/setGroupMember',['as'=>'Api.Admin.User.setGroupMember','uses'=>'UserController@setGroupMember']);
            Route::post('user/delGroupMember',['as'=>'Api.Admin.User.delGroupMember','uses'=>'UserController@delGroupMember']);
            Route::get('user/getNotJoinGroupUserList',['as'=>'Api.Admin.User.getNotJoinGroupUserList','uses'=>'UserController@getNotJoinGroupUserList']);

            //单位模块
            Route::get('unit/getUnitSettledApplyList',['as'=>'Api.Admin.Unit.getUnitSettledApplyList','uses'=>'UnitController@getUnitSettledApplyList']);
            Route::post('unit/changeUnitSettledApplyStatus',['as'=>'Api.Admin.Unit.changeUnitSettledApplyStatus','uses'=>'UnitController@changeUnitSettledApplyStatus']);
            Route::post('unit/delUnitSettledApply',['as'=>'Api.Admin.Unit.delUnitSettledApply','uses'=>'UnitController@delUnitSettledApply']);
            Route::get('unit/getUnitList',['as'=>'Api.Admin.Unit.getUnitList','uses'=>'UnitController@getUnitList']);
            Route::get('unit/getUnitDetail',['as'=>'Api.Admin.Unit.getUnitDetail','uses'=>'UnitController@getUnitDetail']);
            Route::post('unit/editUnitInfo',['as'=>'Api.Admin.Unit.editUnitInfo','uses'=>'UnitController@editUnitInfo']);
            Route::post('unit/delMemberUnit',['as'=>'Api.Admin.Unit.delMemberUnit','uses'=>'UnitController@delMemberUnit']);
            Route::get('unit/getMemberUnitOfficialCommentList',['as'=>'Api.Admin.Unit.getMemberUnitOfficialCommentList','uses'=>'UnitController@getMemberUnitOfficialCommentList']);
            Route::get('unit/getMemberUnitOfficialCommentDetail',['as'=>'Api.Admin.Unit.getMemberUnitOfficialCommentDetail','uses'=>'UnitController@getMemberUnitOfficialCommentDetail']);
            Route::post('unit/setMemberUnitOfficialComment',['as'=>'Api.Admin.Unit.setMemberUnitOfficialComment','uses'=>'UnitController@setMemberUnitOfficialComment']);
            Route::post('unit/delMemberUnitOfficialComment',['as'=>'Api.Admin.Unit.delMemberUnitOfficialComment','uses'=>'UnitController@delMemberUnitOfficialComment']);
            Route::get('unit/getUnitEmployeeList',['as'=>'Api.Admin.Unit.getUnitEmployeeList','uses'=>'UnitController@getUnitEmployeeList']);
            Route::get('unit/getUnitEmployeeDetail',['as'=>'Api.Admin.Unit.getUnitEmployeeDetail','uses'=>'UnitController@getUnitEmployeeDetail']);
            Route::post('unit/editUnitEmployeeInfo',['as'=>'Api.Admin.Unit.editUnitEmployeeInfo','uses'=>'UnitController@editUnitEmployeeInfo']);
            Route::get('unit/getUnitAdminList',['as'=>'Api.Admin.Unit.getUnitAdminList','uses'=>'UnitController@getUnitAdminList']);
            Route::post('unit/addUnitAdmin',['as'=>'Api.Admin.Unit.addUnitAdmin','uses'=>'UnitController@addUnitAdmin']);
            Route::post('unit/delUnitEmployee',['as'=>'Api.Admin.Unit.delUnitEmployee','uses'=>'UnitController@delUnitEmployee']);
            Route::get('unit/getOfficialUnitInfo',['as'=>'Api.Admin.Unit.getOfficialUnitInfo','uses'=>'UnitController@getOfficialUnitInfo']);
            Route::post('unit/setOfficialUnitInfo',['as'=>'Api.Admin.Unit.setOfficialUnitInfo','uses'=>'UnitController@setOfficialUnitInfo']);
            Route::get('unit/getUnitClassifyList',['as'=>'Api.Admin.Unit.getUnitClassifyList','uses'=>'UnitController@getUnitClassifyList']);
            Route::get('unit/getUnitClassifyDetail',['as'=>'Api.Admin.Unit.getUnitClassifyDetail','uses'=>'UnitController@getUnitClassifyDetail']);
            Route::post('unit/setUnitClassify',['as'=>'Api.Admin.Unit.setUnitClassify','uses'=>'UnitController@setUnitClassify']);
            Route::post('unit/delUnitClassify',['as'=>'Api.Admin.Unit.delUnitClassify','uses'=>'UnitController@delUnitClassify']);
            Route::get('unit/getUnitGradeList',['as'=>'Api.Admin.Unit.getUnitGradeList','uses'=>'UnitController@getUnitGradeList']);
            Route::get('unit/getUnitGradeDetail',['as'=>'Api.Admin.Unit.getUnitGradeDetail','uses'=>'UnitController@getUnitGradeDetail']);
            Route::post('unit/setUnitGrade',['as'=>'Api.Admin.Unit.setUnitGrade','uses'=>'UnitController@setUnitGrade']);
            Route::post('unit/delUnitGrade',['as'=>'Api.Admin.Unit.delUnitGrade','uses'=>'UnitController@delUnitGrade']);
            Route::get('unit/getInvoiceLookUpList',['as'=>'Api.Admin.Unit.getInvoiceLookUpList','uses'=>'UnitController@getInvoiceLookUpList']);
            Route::get('unit/getInvoiceLookUpDetail',['as'=>'Api.Admin.Unit.getInvoiceLookUpDetail','uses'=>'UnitController@getInvoiceLookUpDetail']);
            Route::post('unit/setInvoiceLookUp',['as'=>'Api.Admin.Unit.setInvoiceLookUp','uses'=>'UnitController@setInvoiceLookUp']);
            Route::post('unit/delInvoiceLookUp',['as'=>'Api.Admin.Unit.delInvoiceLookUp','uses'=>'UnitController@delInvoiceLookUp']);
            Route::get('unit/getInvoiceRecordList',['as'=>'Api.Admin.Unit.getInvoiceRecordList','uses'=>'UnitController@getInvoiceRecordList']);
            Route::get('unit/getUnitAuthList',['as'=>'Api.Admin.Unit.getUnitAuthList','uses'=>'UnitController@getUnitAuthList']);


            Route::get('operation/getVipPackageList',['as'=>'Api.Admin.Operation.getVipPackageList','uses'=>'OperationController@getVipPackageList']);
            Route::get('operation/getVipPackageDetail',['as'=>'Api.Admin.Operation.getVipPackageDetail','uses'=>'OperationController@getVipPackageDetail']);
            Route::get('operation/getVipRuleList',['as'=>'Api.Admin.Operation.getVipRuleList','uses'=>'OperationController@getVipRuleList']);
            Route::post('operation/setVipPackage',['as'=>'Api.Admin.Operation.setVipPackage','uses'=>'OperationController@setVipPackage']);
            Route::post('operation/delVipPackage',['as'=>'Api.Admin.Operation.delVipPackage','uses'=>'OperationController@delVipPackage']);
            Route::get('operation/getBindPackageMemberUnitList',['as'=>'Api.Admin.Operation.getBindPackageMemberUnitList','uses'=>'OperationController@getBindPackageMemberUnitList']);
            Route::post('operation/vipPackageBindUnit',['as'=>'Api.Admin.Operation.vipPackageBindUnit','uses'=>'OperationController@vipPackageBindUnit']);
            Route::post('operation/UnitUntieVipPackage',['as'=>'Api.Admin.Operation.UnitUntieVipPackage','uses'=>'OperationController@UnitUntieVipPackage']);
            Route::get('operation/getUserRightsList',['as'=>'Api.Admin.Operation.getUserRightsList','uses'=>'OperationController@getUserRightsList']);
            Route::post('operation/changeVipPackageStatus',['as'=>'Api.Admin.Operation.changeVipPackageStatus','uses'=>'OperationController@changeVipPackageStatus']);

            Route::post('sys/setBanner',['as'=>'Api.Admin.sys.setBanner','uses'=>'SystemController@setBanner']);
            Route::post('sys/delBanner',['as'=>'Api.Admin.sys.delBanner','uses'=>'SystemController@delBanner']);
            Route::post('sys/setAdmin',['as' => 'Api.Admin.sys.setAdmin','uses' => 'SystemController@setAdmin']);
            Route::post('sys/delAdmin',['as'=>'Api.Admin.sys.delAdmin','uses'=>'SystemController@delAdmin']);
            Route::post('sys/addClassify',['as'=>'Api.Admin.sys.addClassify','uses'=>'SystemController@addClassify']);
            Route::post('sys/delClassify',['as'=>'Api.Admin.sys.delClassify','uses'=>'SystemController@delClassify']);
            Route::get('sys/getDemandList',['as'=>'Api.Admin.sys.getDemandList','uses'=>'SystemController@getDemandList']);
            Route::get('sys/getDockDemandList',['as'=>'Api.Admin.sys.getDockDemandList','uses'=>'SystemController@getDockDemandList']);
            Route::post('sys/reviewDemand',['as'=>'Api.Admin.sys.reviewDemand','uses'=>'SystemController@reviewDemand']);
            Route::get('sys/getDemandButtList',['as'=>'Api.Admin.sys.getDemandButtList','uses'=>'SystemController@getDemandButtList']);
            Route::post('sys/operateDemandButt',['as'=>'Api.Admin.sys.operateDemandButt','uses'=>'SystemController@operateDemandButt']);
            Route::post('sys/setDemandShopStatus',['as'=>'Api.Admin.sys.setDemandShopStatus','uses'=>'SystemController@setDemandShopStatus']);
            Route::post('sys/sendDemandByAdmin',['as'=>'Api.Admin.sys.sendDemandByAdmin','uses'=>'SystemController@sendDemandByAdmin']);
            Route::post('sys/delDemandByAdmin',['as'=>'Api.Admin.sys.delDemandByAdmin','uses'=>'SystemController@delDemandByAdmin']);
            Route::get('sys/getDemandDetail',['as'=>'Api.Admin.sys.getDemandDetail','uses'=>'SystemController@getDemandDetail']);
            Route::post('sys/setNewsClassify',['as'=>'Api.Admin.sys.setNewsClassify','uses'=>'SystemController@setNewsClassify']);
            Route::post('sys/delNewsClassify',['as'=>'Api.Admin.sys.delNewsClassify','uses'=>'SystemController@delNewsClassify']);
            Route::post('sys/sendNewsByAdmin',['as'=>'Api.Admin.sys.sendNewsByAdmin','uses'=>'SystemController@sendNewsByAdmin']);
            Route::get('sys/getNewsDetail',['as'=>'Api.Admin.sys.getNewsDetail','uses'=>'SystemController@getNewsDetail']);
            Route::get('sys/getNewsClassifyList',['as'=>'Api.Admin.sys.getNewsClassifyList','uses'=>'SystemController@getNewsClassifyList']);
            Route::get('sys/getIndustryList',['as'=>'Api.Admin.sys.getIndustryList','uses'=>'SystemController@getIndustryList']);
            Route::post('sys/addIndustry',['as'=>'Api.Admin.sys.addIndustry','uses'=>'SystemController@addIndustry']);
            Route::get('sys/getNewsList',['as'=>'Api.Admin.sys.getNewsList','uses'=>'SystemController@getNewsList']);
            Route::post('sys/delNewsByAdmin',['as'=>'Api.Admin.sys.delNewsByAdmin','uses'=>'SystemController@delNewsByAdmin']);
            Route::get('sys/getNewsComment',['as'=>'Api.Admin.sys.getNewsComment','uses'=>'SystemController@getNewsComment']);
            Route::post('sys/reviewComment',['as'=>'Api.Admin.sys.reviewComment','uses'=>'SystemController@reviewComment']);
            Route::post('sys/sendOfficialComment',['as'=>'Api.Admin.sys.sendOfficialComment','uses'=>'SystemController@sendOfficialComment']);
            Route::post('sys/setAboutUs',['as'=>'Api.Admin.sys.setAboutUs','uses'=>'SystemController@setAboutUs']);
            Route::get('sys/getAboutUsDetail',['as'=>'Api.Admin.sys.getAboutUsDetail','uses'=>'SystemController@getAboutUsDetail']);
            Route::post('sys/setBanner',['as'=>'Api.Admin.sys.setBanner','uses'=>'SystemController@setBanner']);
            Route::post('sys/setDemandClassify',['as'=>'Api.Admin.sys.setDemandClassify','uses'=>'SystemController@setDemandClassify']);
            Route::post('sys/delDemandClassify',['as'=>'Api.Admin.sys.delDemandClassify','uses'=>'SystemController@delDemandClassify']);
            Route::get('sys/getDemandClassify',['as'=>'Api.Admin.sys.getDemandClassify','uses'=>'SystemController@getDemandClassify']);
            Route::get('sys/getBannerList',['as'=>'Api.Admin.sys.getBannerList','uses'=>'SystemController@getBannerList']);
            Route::post('sys/delBanner',['as'=>'Api.Admin.sys.delBanner','uses'=>'SystemController@delBanner']);
            Route::get('sys/getBannerDetail',['as'=>'Api.Admin.sys.getBannerDetail','uses'=>'SystemController@getBannerDetail']);
            Route::post('sys/setSectionClassify',['as'=>'Api.Admin.sys.setSectionClassify','uses'=>'SystemController@setSectionClassify']);
            Route::get('sys/getSectionClassifyList',['as'=>'Api.Admin.sys.getSectionClassifyList','uses'=>'SystemController@getSectionClassifyList']);
            Route::post('sys/delSectionClassify',['as'=>'Api.Admin.sys.delSectionClassify','uses'=>'SystemController@delSectionClassify']);
            Route::post('sys/delSysMessage',['as'=>'Api.Admin.sys.delSysMessage','uses'=>'SystemController@delSysMessage']);
            Route::get('sys/getMessageList',['as'=>'Api.Admin.sys.getMessageList','uses'=>'SystemController@getMessageList']);
            Route::post('sys/addSysMessage',['as'=>'Api.Admin.sys.addSysMessage','uses'=>'SystemController@addSysMessage']);
            Route::get('sys/getMessageDetail',['as'=>'Api.Admin.sys.getMessageDetail','uses'=>'SystemController@getMessageDetail']);
            Route::post('sys/delComment',['as'=>'Api.Admin.sys.delComment','uses'=>'SystemController@delComment']);
            Route::post('sys/setStatement',['as'=>'Api.Admin.sys.setStatement','uses'=>'SystemController@setStatement']);
            Route::post('sys/setStatementStatus',['as'=>'Api.Admin.sys.setStatementStatus','uses'=>'SystemController@setStatementStatus']);
            Route::get('sys/getStatement',['as'=>'Api.Admin.sys.getStatement','uses'=>'SystemController@getStatement']);
            Route::get('sys/getSectionClassifyDetail',['as'=>'Api.Admin.sys.getSectionClassifyDetail','uses'=>'SystemController@getSectionClassifyDetail']);
            Route::get('sys/getAllCommentList',['as'=>'Api.Admin.sys.getAllCommentList','uses'=>'SystemController@getAllCommentList']);
            Route::post('sys/sendDemandSubscribeMessage',['as'=>'Api.Admin.sys.sendDemandSubscribeMessage','uses'=>'SystemController@sendDemandSubscribeMessage']);
            Route::post('sys/delUser',['as'=>'Api.Admin.sys.delUser','uses'=>'SystemController@delUser']);
            Route::any('sys/unDelUser',['as'=>'Api.Admin.sys.unDelUser','uses'=>'SystemController@unDelUser']);
            Route::post('sys/setDemandStatus',['as'=>'Api.Admin.sys.setDemandStatus','uses'=>'SystemController@setDemandStatus']);
            //获取公众号的素材
            Route::get('sys/syncNewsMaterialFromWeChat',['as'=>'Api.Admin.sys.syncNewsMaterialFromWeChat','uses'=>'SystemController@syncNewsMaterialFromWeChat']);
            Route::post('sys/changeNewsStatus',['as'=>'Api.Admin.sys.changeNewsStatus','uses'=>'SystemController@changeNewsStatus']);
            //获取菁英列表
            Route::get('sys/getUserOpenId',['as'=>'Api.Admin.sys.getUserOpenId','uses'=>'SystemController@getUserOpenId']);
            Route::post('sys/sendDemandByModelMsg',['as'=>'Api.Admin.sys.sendDemandByModelMsg','uses'=>'SystemController@sendDemandByModelMsg']);
            //预约专家
            Route::post('sys/confirmAppoint',['as'=>'Api.Admin.sys.confirmAppoint','uses'=>'SystemController@confirmAppoint']);
            Route::get('sys/getExpertAppointList',['as'=>'Api.Admin.sys.getExpertAppointList','uses'=>'SystemController@getExpertAppointList']);
            //服务条款
            Route::post('sys/setTermsService',['as'=>'Api.Admin.sys.setTermsService','uses'=>'SystemController@setTermsService']);
            Route::get('sys/getTermsService',['as'=>'Api.Admin.sys.getTermsService','uses'=>'SystemController@getTermsService']);
            Route::post('sys/setTermsServiceStatus',['as'=>'Api.Admin.sys.setTermsServiceStatus','uses'=>'SystemController@setTermsServiceStatus']);

            Route::get('sys/getAdminMessageList',['as'=>'Api.Admin.sys.getAdminMessageList','uses'=>'SystemController@getAdminMessageList']);
            Route::post('sys/setAlreadyRead',['as'=>'Api.Admin.sys.setAlreadyRead','uses'=>'SystemController@setAlreadyRead']);
            Route::post('sys/setDemandArea',['as'=>'Api.Admin.sys.setDemandArea','uses'=>'SystemController@setDemandArea']);
            Route::post('sys/setDemandCreateTime',['as'=>'Api.Admin.sys.setDemandCreateTime','uses'=>'SystemController@setDemandCreateTime']);
            Route::post('sys/demandReback',['as'=>'Api.Admin.sys.demandReback','uses'=>'SystemController@demandReback']);

            //数据统计模块
            Route::get('data/getAllCount',['as'=>'Api.Admin.Data.getAllCount','uses'=>'DataController@getAllCount']);
            Route::get('data/getUserWeekCount',['as'=>'Api.Admin.Data.getUserWeekCount','uses'=>'DataController@getUserWeekCount']);
            Route::get('data/syncWechatVisitData',['as'=>'Api.Admin.Data.syncWechatVisitData','uses'=>'DataController@syncWechatVisitData']);

        });

        Route::group(['prefix' => 'wx'],function(){
            Route::any('getJsApiPacket',['as'=>'Api.Wechat.getJsApiPacket','uses'=>'WechatController@getJsApiPacket']);
        });

        Route::group(['prefix' => 'file'],function(){
            Route::post('upload-img',['as'=>'Api.File.upload','uses'=>'ImageController@upload']);
            Route::post('upload-audio',['as'=>'Api.File.uploadAudio','uses'=>'ImageController@uploadAudio']);
            Route::post('upload-video',['as'=>'Api.File.uploadVideo','uses'=>'ImageController@uploadVideo']);
            Route::post('businessLicenseUpload',['as'=>'Api.File.businessLicenseUpload','uses'=>'ImageController@businessLicenseUpload']);
            Route::get('show-image/{id}',['as'=>'Api.File.showImageById','uses'=>'ImageController@showImageById']);
            Route::get('show-video/{id}',['as'=>'Api.File.showVideoById','uses'=>'ImageController@showVideoById']);
            Route::get('reloadImages',['as'=>'Api.File.reloadImages','uses'=>'ImageController@reloadImages']);
            Route::post('uploadBase64Image',['as'=>'Api.File.uploadBase64Image','uses'=>'ImageController@uploadBase64Image']);
            Route::post('upload-user-photo',['as'=>'Api.File.uploadUserPhoto','uses'=>'ImageController@uploadUserPhoto']);
        });

        Route::group(['prefix' => 'audio'],function(){
            Route::get('upload-audio/{audio_id}',['as'=>'Api.Audio.getAudioUrl','uses'=>'AudioController@getAudioUrl']);
       });

        Route::group(['prefix' => 'auth'],function(){
            Route::get('wxLogin',['as'=>'Api.Auth.wxLogin','uses'=>'AuthController@wxLogin']);
            Route::get('goToUrl',['as'=>'Api.Auth.goToUrl','uses'=>'AuthController@goToUrl']);
            Route::post('wxAppLogin',['as'=>'Api.Auth.wxAppLogin','uses'=>'AuthController@wxAppLogin']);
            Route::any('wechatCallback',['as'=>'Api.Auth.wechatCallback','uses'=>'AuthController@wechatCallback']);
            Route::post('bindingPhone',['as'=>'Api.Auth.bindingPhone','uses'=>'AuthController@bindingPhone']);
            Route::post('sendVerificationCode',['as'=>'Api.Auth.sendVerificationCode','uses'=>'AuthController@sendVerificationCode']);
            Route::get('getUserToken/{id?}',['as'=>'Api.Auth.getUserToken','uses'=>'AuthController@getUserToken']);
            Route::post('getWeChatPhone',['as'=>'Api.Auth.getWeChatPhone','uses'=>'AuthController@getWeChatPhone']);
            Route::post('resetSessionKey',['as'=>'Api.Auth.resetSessionKey','uses'=>'AuthController@resetSessionKey']);
            Route::get('getUserAgreement',['as'=>'Api.Auth.getUserAgreement','uses'=>'AuthController@getUserAgreement']);
            Route::get('getAuthenticateRule',['as'=>'Api.Auth.getAuthenticateRule','uses'=>'AuthController@getAuthenticateRule']);
            Route::post('directBindingPhone',['as'=>'Api.Auth.directBindingPhone','uses'=>'AuthController@directBindingPhone']);
            Route::get('ceshi',['as'=>'Api.Auth.ceshi','uses'=>'AuthController@ceshi']);

        });

        Route::group(['prefix' => 'news'],function(){
            Route::get('getNewsList',['as'=>'Api.News.getNewsList','uses'=>'NewsController@getNewsList']);
            Route::get('getNewsDetail',['as'=>'Api.News.getNewsDetail','uses'=>'NewsController@getNewsDetail']);
            Route::post('releaseNewsComment',['as'=>'Api.News.releaseNewsComment','uses'=>'NewsController@releaseNewsComment']);
            Route::post('commentLikeAction',['as'=>'Api.News.commentLikeAction','uses'=>'NewsController@commentLikeAction']);
            Route::post('favoriteNews',['as'=>'Api.News.favoriteNews','uses'=>'NewsController@favoriteNews']);
            Route::post('unFavoriteNews',['as'=>'Api.News.unFavoriteNews','uses'=>'NewsController@unFavoriteNews']);
            Route::post('likeNews',['as'=>'Api.News.likeNews','uses'=>'NewsController@likeNews']);
            Route::get('getNewsComment',['as'=>'Api.News.getNewsComment','uses'=>'NewsController@getNewsComment']);
        });
        Route::group(['prefix' => 'demand'],function(){
            Route::get('getDemandList',['as'=>'Api.Demand.getDemandList','uses'=>'DemandController@getDemandList']);
            Route::get('getDemandDetail',['as'=>'Api.Demand.getDemandDetail','uses'=>'DemandController@getDemandDetail']);
            Route::get('getMyDemandInfo',['as'=>'Api.Demand.getMyDemandInfo','uses'=>'DemandController@getMyDemandInfo']);
            Route::get('getMyDemandButtDetail',['as'=>'Api.Demand.getMyDemandButtDetail','uses'=>'DemandController@getMyDemandButtDetail']);
            Route::get('getMyJoinDemandInfo',['as'=>'Api.Demand.getMyJoinDemandInfo','uses'=>'DemandController@getMyJoinDemandInfo']);
            Route::get('getDemandSenderInfo',['as'=>'Api.Demand.getDemandSenderInfo','uses'=>'DemandController@getDemandSenderInfo']);
            Route::post('operateDemandJoiner',['as'=>'Api.Demand.operateDemandJoiner','uses'=>'DemandController@operateDemandJoiner']);
            Route::post('sendDemandByPhone',['as'=>'Api.Demand.sendDemandByPhone','uses'=>'DemandController@sendDemandByPhone']);
            Route::post('favoriteDemand',['as'=>'Api.Demand.favoriteDemand','uses'=>'DemandController@favoriteDemand']);
            Route::post('unFavoriteDemand',['as'=>'Api.Demand.unFavoriteDemand','uses'=>'DemandController@unFavoriteDemand']);
            Route::post('favoriteDemand',['as'=>'Api.Demand.favoriteDemand','uses'=>'DemandController@favoriteDemand']);
            Route::post('unFavoriteDemand',['as'=>'Api.Demand.unFavoriteDemand','uses'=>'DemandController@unFavoriteDemand']);
            Route::get('getDemandIndex',['as'=>'Api.Demand.getDemandIndex','uses'=>'DemandController@getDemandIndex']);
            Route::post('joinDemand',['as'=>'Api.Demand.joinDemand','uses'=>'DemandController@joinDemand']);
            Route::get('getStatement',['as'=>'Api.Demand.getStatement','uses'=>'DemandController@getStatement']);
            Route::get('getTermsService',['as'=>'Api.Demand.getTermsService','uses'=>'DemandController@getTermsService']);
            Route::get('getDemandAreaList',['as'=>'Api.Demand.getDemandAreaList','uses'=>'DemandController@getDemandAreaList']);
            Route::get('getUnitInfo',['as'=>'Api.Demand.getUnitInfo','uses'=>'DemandController@getUnitInfo']);
        });
        Route::group(['prefix' => 'activity'],function(){
            Route::get('activityClassify',['as'=>'Api.Activity.activityClassify','uses'=>'ActivityController@activityClassify']);
            Route::get('getActivity',['as'=>'Api.Activity.getActivity','uses'=>'ActivityController@getActivity']);
            Route::get('getActivityDetail',['as'=>'Api.Activity.getActivityDetail','uses'=>'ActivityController@getActivityDetail']);
            Route::get('generateShareQrCode',['as'=>'Api.Activity.generateShareQrCode','uses'=>'ActivityController@generateShareQrCode']);
            Route::get('getActivePartyList',['as'=>'Api.Activity.getActivePartyList','uses'=>'ActivityController@getActivePartyList']);
            Route::get('getActivePartyDetail',['as'=>'Api.Activity.getActivePartyDetail','uses'=>'ActivityController@getActivePartyDetail']);
            Route::post('activityBrowseRecord',['as'=>'Api.Activity.activityBrowseRecord','uses'=>'ActivityController@activityBrowseRecord']);
            Route::post('userAttentionActivity',['as'=>'Api.Activity.userAttentionActivity','uses'=>'ActivityController@userAttentionActivity']);
            Route::get('activityCheckStatus',['as'=>'Api.Activity.activityCheckStatus','uses'=>'ActivityController@activityCheckStatus']);
            Route::post('activityCheckIn',['as'=>'Api.Activity.activityCheckIn','uses'=>'ActivityController@activityCheckIn']);

        });

        Route::group(['prefix' => 'other'],function(){
            Route::get('getBannerList',['as'=>'Api.Other.getBannerList','uses'=>'OtherController@getBannerList']);
            Route::get('getIndustryList',['as'=>'Api.Other.getIndustryList','uses'=>'OtherController@getIndustryList']);
            Route::get('getAboutUs',['as'=>'Api.Other.getAboutUs','uses'=>'OtherController@getAboutUs']);
            Route::get('getClassify',['as'=>'Api.Other.getClassify','uses'=>'OtherController@getClassify']);
            Route::get('getUnitGradeList',['as'=>'Api.Other.getUnitGradeList','uses'=>'OtherController@getUnitGradeList']);
            Route::get('searchSomething',['as'=>'Api.Other.searchSomething','uses'=>'OtherController@searchSomething']);
            Route::get('getSearchKeyword',['as'=>'Api.Other.getSearchKeyword','uses'=>'OtherController@getSearchKeyword']);
            Route::post('delMykeywordRecord',['as'=>'Api.Other.delMykeywordRecord','uses'=>'OtherController@delMykeywordRecord']);
            Route::get('getImgUrlTOImgId',['as'=>'Api.Other.getImgUrlTOImgId','uses'=>'OtherController@getImgUrlTOImgId']);
            Route::get('getOssImgPath',['as'=>'Api.Other.getOssImgPath','uses'=>'OtherController@getOssImgPath']);
            Route::get('getTemplate',['as'=>'Api.Other.getTemplate','uses'=>'OtherController@getTemplate']);
            Route::get('showQrcode',['as'=>'Api.Other.showQrcode','uses'=>'OtherController@showQrcode']);

        });

        Route::group(['prefix' => 'ucenter'],function(){
            Route::get('getUserInfo',['as'=>'Api.UCenter.getUserInfo','uses'=>'UCenterController@getUserInfo']);
            Route::post('setUserInfo',['as'=>'Api.UCenter.setUserInfo','uses'=>'UCenterController@setUserInfo']);
            Route::post('submitPersonalAuth',['as'=>'Api.UCenter.submitPersonalAuth','uses'=>'UCenterController@submitPersonalAuth']);
            Route::post('submitExpertAuth',['as'=>'Api.UCenter.submitExpertAuth','uses'=>'UCenterController@submitExpertAuth']);
            Route::post('submitUnitAuth',['as'=>'Api.UCenter.submitUnitAuth','uses'=>'UCenterController@submitUnitAuth']);
            Route::get('getUserAttentionActivityList',['as'=>'Api.UCenter.getUserAttentionActivityList','uses'=>'UCenterController@getUserAttentionActivityList']);
            Route::get('getBusinessLicenseInfo',['as'=>'Api.UCenter.getBusinessLicenseInfo','uses'=>'UCenterController@getBusinessLicenseInfo']);
            Route::post('submitUnitSettledApply',['as'=>'Api.UCenter.submitUnitSettledApply','uses'=>'UCenterController@submitUnitSettledApply']);
            Route::get('getExpertsList',['as'=>'Api.UCenter.getExpertsList','uses'=>'UCenterController@getExpertsList']);
            Route::get('getExpertDetail',['as'=>'Api.UCenter.getExpertDetail','uses'=>'UCenterController@getExpertDetail']);
            Route::get('getMemberUnitList',['as'=>'Api.UCenter.getMemberUnitList','uses'=>'UCenterController@getMemberUnitList']);
            Route::get('getMemberUnitDetail',['as'=>'Api.UCenter.getMemberUnitDetail','uses'=>'UCenterController@getMemberUnitDetail']);
            Route::get('getUnitXUserDemandList',['as'=>'Api.UCenter.getUnitXUserDemandList','uses'=>'UCenterController@getUnitXUserDemandList']);
            Route::get('getUserJoinActivityList',['as'=>'Api.UCenter.getUserJoinActivityList','uses'=>'UCenterController@getUserJoinActivityList']);
            Route::get('getMyFavoriteNews',['as'=>'Api.UCenter.getMyFavoriteNews','uses'=>'UCenterController@getMyFavoriteNews']);
            Route::get('getMyFavoriteDemand',['as'=>'Api.UCenter.getMyFavoriteDemand','uses'=>'UCenterController@getMyFavoriteDemand']);
            Route::get('getPersonalAuthInfo',['as'=>'Api.UCenter.getPersonalAuthInfo','uses'=>'UCenterController@getPersonalAuthInfo']);
            Route::get('getUnitAuthInfo',['as'=>'Api.UCenter.getUnitAuthInfo','uses'=>'UCenterController@getUnitAuthInfo']);
            Route::get('getExpertAuthInfo',['as'=>'Api.UCenter.getExpertAuthInfo','uses'=>'UCenterController@getExpertAuthInfo']);
            Route::post('setBusinessSituationTemplate',['as'=>'Api.UCenter.setBusinessSituationTemplate','uses'=>'UCenterController@setBusinessSituationTemplate']);
            Route::get('getBusinessSituationTemplate',['as'=>'Api.UCenter.getBusinessSituationTemplate','uses'=>'UCenterController@getBusinessSituationTemplate']);
            Route::post('delBusinessSituationTemplate',['as'=>'Api.UCenter.delBusinessSituationTemplate','uses'=>'UCenterController@delBusinessSituationTemplate']);
            Route::post('userAppointExpert',['as'=>'Api.UCenter.userAppointExpert','uses'=>'UCenterController@userAppointExpert']);

        });

        Route::group(['prefix'=>'order'],function (){
            Route::post('buildOrder',['as'=>'Api.Order.buildOrder','uses'=>'OrderController@buildOrder']);
        });

        Route::group(['prefix'=>'message'],function (){
            Route::get('getMessageList',['as'=>'Api.Message.getMessageList','uses'=>'MessageController@getMessageList']);
            Route::get('getMessageDetail',['as'=>'Api.Message.getMessageDetail','uses'=>'MessageController@getMessageDetail']);
            Route::get('getMyMessageRemind',['as'=>'Api.Message.getMyMessageRemind','uses'=>'MessageController@getMyMessageRemind']);
            Route::get('getMyMessageNumber',['as'=>'Api.Message.getMyMessageNumber','uses'=>'MessageController@getMyMessageNumber']);
        });

        Route::group(['prefix'=>'payment'],function (){
            Route::post('weChatPayment',['as'=>'Api.Payment.weChatPayment','uses'=>'PaymentController@weChatPayment']);
            Route::get('getPayQrCode',['as'=>'Api.Payment.getPayQrCode','uses'=>'PaymentController@getPayQrCode']);
            Route::get('getPayStatus',['as'=>'Api.Payment.getPayStatus','uses'=>'PaymentController@getPayStatus']);
            Route::any('WeChatPayCallback',['as'=>'Api.Payment.WeChatPayCallback','uses'=>'PaymentController@WeChatPayCallback']);
        });
        Route::any('test','OtherController@getOpenIdTest');
    });
});
